package com.zhuangjie.mvc.validator.annotate;

import com.zhuangjie.mvc.validator.handler.ValidTimeRangeListValidator;

import javax.validation.Constraint;
import javax.validation.Payload;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

@Target({ElementType.METHOD, ElementType.FIELD})
@Retention(RetentionPolicy.RUNTIME)
@Constraint(validatedBy = ValidTimeRangeListValidator.class)
public @interface ValidTimeRangeList {
    String message() default "{com.yourdomain.validation.constraints.ValidStringPattern.message}";

    String rangeDelimiter() default "-";

    String timeInternalDelimiter() default ":";

    Class<?>[] groups() default {};

    Class<? extends Payload>[] payload() default {};
}
